//
//  TwoViewController.m
//  5-24
//
//  Created by mac on 16-5-24.
//  Copyright (c) 2016年 ztt. All rights reserved.
//

#import "TwoViewController.h"

@interface TwoViewController ()
{
    NSArray *ren;
}
@end

@implementation TwoViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor greenColor];
    //self.navigationItem.title = @"第二个view";
    ren = @[
            @"抹茶粉：半勺，用开水冲泡。",
            @"奶茶：250mL。",
            @"配料：珍珠，椰果。",
            ];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return ren.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *fen = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
    fen.textLabel.text = ren[indexPath.row];
    fen.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    return fen;
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
